<%@ page contentType="text/html; charset=utf-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>url mapping</title>
</head>
<body>
<h3>root context : localhost:8080/exp</h3>

<h3>current context : localhost:8080/exp/abc/urlMapping</h3>

http://localhost:8080/exp/urlMapping<br/>
<a href="/a/b">href="/a/b" => localhost:8080/a/b</a><br/>
<a href="c/d">href="c/d" => localhost:8080/exp/abc/c/d</a><br/>

<form action="/e">
    <input type="submit" value="action='/e'">
</form>
<p>action /e => localhost:8080/e?</p>

<form action="f">
    <input type="submit" value="action='f'">
</form>
<p>action e => localhost:8080/exp/abc/f?</p>

<form action="g">
    <input type="submit" value="action='g'">
</form>
<p>action g,redirect:/a/b => localhost:8080/exp/a/b</p>
</body>

<form action="h">
    <input type="submit" value="action='h'">
</form>
<p>action h,redirect:a/b => localhost:8080/exp/url_mapping</p>

</body>
</html>